#ifndef SETTINGS_H
#define SETTINGS_H

#include <QSettings>
#include <QVariant>
#include <QString>

class Settings : public QSettings
{
    Q_OBJECT
public:

    /*
     *  Constructor of the setting object
     *  @param QString file : file where to read the basic settings
     *  @param Format format : Format of the settings file
     */
    explicit Settings(QString file,Format format = QSettings::IniFormat);

    /*
     *  Function to get a setting value
     *  @param QString name : Name of the value
     *  @return QVariant : Value of the setting
     */
     QVariant getValue(QString name);

     /*
      *  Function to set a setting value
      *  @param QString name : Name of the value
      *  param QVariant : Value of the setting
      */
     void setValue(QString name, QVariant value);



signals:


public slots:

};

#endif // SETTINGS_H
